﻿//
// Copyright (c) Ping Castle. All rights reserved.
// https://www.pingcastle.com
//
// Licensed under the Non-Profit OSL. See LICENSE file in the project root for full license information.
//
using System;
using System.Collections.Generic;
using System.Text;
using PingCastle.Rules;

namespace PingCastle.Healthcheck.Rules
{
	[RuleModel("P-RecycleBin", RiskRuleCategory.PrivilegedAccounts, RiskModelCategory.IrreversibleChange)]
	[RuleComputation(RuleComputationType.TriggerOnPresence, 10)]
	[RuleIntroducedIn(2, 7)]
	public class HeatlcheckRulePrivilegedRecycleBin : RuleBase<HealthcheckData>
	{
		protected override int? AnalyzeDataNew(HealthcheckData healthcheckData)
		{
			if (healthcheckData.IsRecycleBinEnabled)
			{
				return 0;
			}
			return 1;
		}
	}
}
